export const symbolOptions = [
  {
    label: '为空',
    value: "isBlank"
  },
  {
    label: '不为空',
    value: "isNotBlank"
  },
  {
    label: '开头是',
    value: "isStartWith"
  },
  {
    label: '开头不是',
    value: "isStartNotWith"
  },
  {
    label: '结尾是',
    value: "isEndWith"
  },
  {
    label: '结尾不是',
    value: "isEndNotWith"
  },
  {
    label: '早于',
    value: "isBefore"
  },
  {
    label: '晚于',
    value: "isAfter"
  },
  {
    label: '早于等于',
    value: "isBeforeAndEquals"
  },
  {
    label: '晚于等于',
    value: "isAfterAndEquals"
  },

  {
    label: '在时间范围内',
    value: "isTimeScope"
  },
  {
    label: '不在时间范围内',
    value: "isNotTimeScope"
  },
  {
    label: 'X< 值 <y',
    value: "isNumberValueScope"
  },
  {
    label: 'X>值 >Y',
    value: "isNumberValueScope1"
  },
  {
    label: 'X<= 值 <=y',
    value: "isNumberValueScope2"
  },
  {
    label: 'X>=值 >=Y',
    value: "isNumberValueScope3"
  },
  {
    label: '属于',
    value: "isBelong"
  },
  {
    label: '不属于',
    value: "isNotBelong"
  },
  {
    label: '下级包含',
    value: "isSubBelong"
  },
  {
    label: '下级不包含',
    value: "isSubNotBelong"
  },

  {
    label: '大于等于',
    value: ">="
  },
  {
    label: '大于',
    value: ">"
  },
  {
    label: '等于',
    value: "=="
  },
  {
    label: '小于等于',
    value: "<="
  },
  {
    label: '小于',
    value: "<"
  },
  {
    label: '不等于',
    value: "<>"
  },
  {
    label: '包含',
    value: "like"
  },
  {
    label: '不包含',
    value: "notLike"
  },
  {
    label: '属于部门-组织下',
    value: "belongDept"
  },
  {
    label: '属于该角色下',
    value: "belongRole"
  },
  {
    label: '属于该岗位下',
    value: "belongPos"
  },
  {
    label: '属于该分组下',
    value: "belongGroup"
  },

]

// 日期类型控件
export const SYMBOL_DATE_KEYS = [
  // 等于\不等于 早于\晚于 早于等于\晚于等于 在时间范围内\不在范围内 每天的时间(ex扩展) 为空\不为空
  '==', '<>', 'isBefore', 'isAfter', 'isBeforeAndEquals', 'isAfterAndEquals', 'isTimeScope', 'isNotTimeScope', 'isBlank', 'isNotBlank'
]

// 字符串类型控件
export const SYMBOL_STRING_KEYS = [
  // 等于\不等于 包含\不包含 为空\不为空 开头是\开头不是 结尾是\结尾不是
  '==', '<>', 'like', 'notLike', 'isBlank', 'isNotBlank', 'isStartWith', 'isStartNotWith', 'isEndWith', 'isEndNotWith'
]

// 数字类型控件
export const SYMBOL_NUMBER_KEYS = [
  // 等于\不等于 大于(等于)\小于(等于) x < 值 < y\x > 值 > y(在范围内) x <= 值 <= y \ X >= 值 >= Y 为空\不为空
  '==', '<>', '>=', '<=', '>', '<', 'isBlank', 'isNotBlank', 'isNumberValueScope', 'isNumberValueScope1', 'isNumberValueScope2', 'isNumberValueScope3'
]
// Organization 类型控件
export const SYMBOL_ORGANIZATION_KEYS = [
  // 等于\不等于 包含\不包含 属于\不属于 下级包含\下级不包含 为空\不为空
  '==', '<>', 'like', 'notLike', 'isBlank', 'isNotBlank'
]

export const SYMBOL_USER_TYPE_KEYS = [
  // 等于\不等于 包含\不包含 属于\不属于 下级包含\下级不包含 为空\不为空
  '==', '<>', 'like', 'notLike', 'isBlank', 'isNotBlank', 'belongDept','belongRole','belongPos','belongGroup'
]

export const SYMOL_COM_DEPTART_KEYS = [
  'isBelong', 'isNotBelong', 'isSubBelong', 'isSubNotBelong', 'like', 'notLike', 'isBlank', 'isNotBlank'
]

// 开关类型控件
export const SYMBOL_SWITCH_KEYS = [
  // 等于\不等于
  '==', '<>'
]

// 选择类型控件
export const SYMBOL_SELECT_KEYS = [
  // 包含\不包含 等于\不等于 为空\不为空
  'like', 'notLike', '==', '<>', 'isBlank', 'isNotBlank'
]

// 其余控件 默认
export const SYMBOL_DEFAULT_KEYS = [
  // 为空\不为空
  'isBlank', 'isNotBlank'
]

export const SYMBOL_KEY_MAP = {
  // 字符串类型控件
  input: SYMBOL_STRING_KEYS,
  textarea: SYMBOL_STRING_KEYS,
  // 时间控件
  datePicker: SYMBOL_DATE_KEYS,
  createTime: SYMBOL_DATE_KEYS,
  modifyTime: SYMBOL_DATE_KEYS,
  timePicker: SYMBOL_DATE_KEYS,
  // 开关控件
  switch: SYMBOL_SWITCH_KEYS,
  // 数字控件
  inputNumber: SYMBOL_NUMBER_KEYS,
  // 用户\角色\岗位\部门类型控件
  groupSelect: SYMBOL_ORGANIZATION_KEYS,
  usersSelect: SYMBOL_USER_TYPE_KEYS,
  createUser: SYMBOL_USER_TYPE_KEYS,
  modifyUser: SYMBOL_USER_TYPE_KEYS,
  userSelect: SYMBOL_USER_TYPE_KEYS,
  roleSelect: SYMBOL_ORGANIZATION_KEYS,
  posSelect: SYMBOL_ORGANIZATION_KEYS,
  organizeSelect: SYMOL_COM_DEPTART_KEYS,
  depSelect: SYMOL_COM_DEPTART_KEYS,
  currOrganize: SYMOL_COM_DEPTART_KEYS,
  currPosition: SYMOL_COM_DEPTART_KEYS,




  // 下拉框,多选框,(多选类型)
  radio: SYMBOL_SELECT_KEYS,
  checkbox: SYMBOL_SELECT_KEYS,
  select: SYMBOL_SELECT_KEYS,
  cascader: SYMBOL_SELECT_KEYS,
  treeSelect: SYMBOL_SELECT_KEYS,
  popupTableSelect: SYMBOL_SELECT_KEYS,
  autoComplete: SYMBOL_SELECT_KEYS,
  // 其余类型的控件
  uploadFile: SYMBOL_DEFAULT_KEYS,
  uploadImg: SYMBOL_DEFAULT_KEYS,
  colorPicker: SYMBOL_DEFAULT_KEYS,
  rate: SYMBOL_DEFAULT_KEYS,
  slider: SYMBOL_DEFAULT_KEYS,
  editor: SYMBOL_DEFAULT_KEYS,
  link: SYMBOL_DEFAULT_KEYS,
  button: SYMBOL_DEFAULT_KEYS,
  text: SYMBOL_DEFAULT_KEYS,
  alert: SYMBOL_DEFAULT_KEYS,
  table: SYMBOL_DEFAULT_KEYS,
  areaSelect: SYMBOL_DEFAULT_KEYS,
  relationForm: SYMBOL_DEFAULT_KEYS,
  relationFormAttr: SYMBOL_DEFAULT_KEYS,
  popupSelect: SYMBOL_DEFAULT_KEYS,
  popupAttr: SYMBOL_DEFAULT_KEYS,
  sign: SYMBOL_DEFAULT_KEYS,
  location: SYMBOL_DEFAULT_KEYS,
  iframe: SYMBOL_DEFAULT_KEYS,
  billRule: SYMBOL_DEFAULT_KEYS,
  groupTitle: SYMBOL_DEFAULT_KEYS,
  divider: SYMBOL_DEFAULT_KEYS,
  collapse: SYMBOL_DEFAULT_KEYS,
  tab: SYMBOL_DEFAULT_KEYS,
  row: SYMBOL_DEFAULT_KEYS,
  card: SYMBOL_DEFAULT_KEYS,
  tableGrid: SYMBOL_DEFAULT_KEYS,
}
